#pragma once
#include <iostream>
#include <stdlib.h>

#define __DLL_H__

#define __DLL_EXPORTS__
#ifdef __DLL_EXPORTS__
#define DLLAPI  __declspec(dllexport)
#else
#define DLLAPI __declspec(dllimport)
#endif

using namespace std;

enum ERRORTYPE
{
	SUCCESS = 0,
	FILE_NOT_DOC = 1,
	FILE_NOT_XLS = 2,
	FILE_NOT_PPT = 3,
	FILE_NOT_DOCX = 4,
	FILE_NOT_XLSX = 5,
	FILE_NOT_PPTX = 6,
	XLS_ERROR_OPEN =7,
	XLS_ERROR_SEE = 8,
	XLS_ERROR_READ = 9,
	XLS_ERROR_PARSE = 10,
	XLS_ERROR_MALLOC = 11,
	FILE_OPEN_FAILED =12,
	FILE_NOT_BINARY=13,
};

class DLLAPI IOfficeFile
{
public:

	IOfficeFile() {};
	~IOfficeFile() {};
	virtual ERRORTYPE getResult() = 0;
	virtual std::string ParagraphText() = 0;
protected:
	ERRORTYPE fileResult;
	
};
